// async function testFunc() {
//     const self = this;
//     const result = await Promise.resolve(42); // 模拟异步操作
//     console.log(`===>wtf ${self != this}`); // ===>wtf false
// }

class Test {
    async run() {
        const self = this;
        const result = await Promise.resolve(42); // 模拟异步操作
        console.log(`===>Test.run self === this  ${self === this}`); // ===>Test.run self === this  true
        console.log(`===>Test.run self == this  ${self == this}`); // ===>Test.run self == this  true
    }
}

export function test_await() {
    console.log("===>Test: test_await()");

    new Test().run();
}
